package cn.rwklyd.BookKeeping.service.impl;

import cn.rwklyd.BookKeeping.mapper.AdminMapper;
import cn.rwklyd.BookKeeping.service.AdminService;
import cn.rwklyd.BookKeeping.pojo.User;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {

    private final AdminMapper adminMapper;

    public AdminServiceImpl(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public List<User> getAllAdmins(String parameter) {
        return adminMapper.getAllAdmins(parameter);
    }
}
